Skip to content

Agent Flow: replay builds new floors in their step (#413, ide) - #441

Merged
aMonteSl merged 1 commit into
idefrom
claude/project-thread-31qlni-ide
Dec 2, 2026
Merged

aMonteSl merged 1 commit into
idefrom
claude/project-thread-31qlni-ide

Conversation

@aMonteSl

@aMonteSl aMonteSl commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Requested by Adrián · project thread

Follow-up to story #413 (epic #319), from Adrián's manual test: a new floor was only seen being built live; replaying the timeline showed the floor already standing.

Cause

The codexr-city A-Frame component copied the whole city API onto itself, tick included. A-Frame calls a component's tick(time, delta) every frame, so city.tick(dt, time) received the clock as dt and every tween (building heights, see-through fades, floor growth) finished on the next frame. The view's own clamped tick never got to animate anything.

Change

  • cityScene.js: registerCityComponent no longer copies A-Frame lifecycle names (init, update, remove, tick, tock, play, pause) onto the component. The view keeps driving the city's tick.
  • Harness: samples the new fanInOutRows floor every frame during its replayed step and asserts it grows over several frames; waits for tweens to settle (software GL runs a few frames a second, each advancing at most 64 ms).
  • CHANGELOG: one bullet under Agent Flow.

The timeline already rebuilds the city as it was at each point of the chat (floors by bornStep, heights, created and deleted files); with the tweens working, playing forward now shows each change being built.

Tests

  • npm test: green.
  • node test/runners/run-agent-flow-harness.cjs: OK, including the new growth assertion.

Generated by Claude Code

…eir step

The codexr-city component copied the whole city API onto itself, tick
included, so A-Frame called city.tick(time, delta) every frame: the clock
went in as dt and every height, fade and floor tween finished on the next
frame. Replaying a step that writes a new function therefore showed the
floor already built. The component now leaves A-Frame's lifecycle names
alone; the view still drives the city's tick.

The harness samples the new floor every frame during its step and asserts
it grows over several frames, and waits for tweens to settle on software GL.
@aMonteSl aMonteSl self-assigned this Dec 2, 2026
@aMonteSl
aMonteSl merged commit 2c9f093 into ide Dec 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants